const arr = [1, 2, 3, 4, 3, 5, 4, 6, 3];
// let sum = 0;
// for (let i of arr) {
//     sum += i
// }
// console.log(sum);

console.log(arr.reduce((last, v) => last + v, 0));